package com.gxa.saas.mapper;


import com.gxa.saas.pojo.GoodsXq;
import com.gxa.saas.pojo.Storage;
import com.gxa.saas.pojo.StoreHouseOut;

import java.util.List;
import java.util.Map;

public interface StoreHouseOutMapper {

    List<StoreHouseOut> selectByPage(Integer page, Integer size);

    StoreHouseOut selectById(Integer id);
    Integer update(Map map);

    Integer  updateByOut(StoreHouseOut storeHouseOut);
    Integer updateCheck(Integer id,String comments);

    Integer addOutList(StoreHouseOut storeHouseOut);

    Integer deleteById(Integer id);

    Storage selectByDetailId(Integer id);

    List<StoreHouseOut> selectAll();

    List<StoreHouseOut> selectByDateAndDepotAndState(Map map);

    List<StoreHouseOut> getDropDownList();

    Integer selectTotalMount();
    Integer selectTotalStorage();

    List<GoodsXq> selectDetailById(Integer id);


    List<Storage> selectStorageByPage(Integer page, Integer size);
    //用入库单的数量减
    List<Storage> selectStoreDetail(String goodsName, Integer page, Integer size);

    Integer selectTotalByLike(String name);
    Integer selectTotalByTiaojian(Map map);
    Integer deleteDetailById(Integer id);
    Integer insertGoodsXq(GoodsXq goodsXq);
    GoodsXq selectByGoodsXqId(Integer id);
    Integer updateByPrice(Integer bigCount,Integer smallCount,Double money,Integer id);

}
